import repuest from '@/utils/request.ts'
import { LoginParams,LoginResult,Getuserinfotype } from '@/api/user/usertype.ts'

// 枚举类型
enum API {
    loginUrl = '/user/login',
    userInfoUrl = 'user/info'
}




// 登录接口
export const reslogin=(data: LoginParams)=>repuest.post<any, LoginResult>(API.loginUrl, data)

// 获取用户信息接口
export const getUserInfo = () => repuest.get<any, Getuserinfotype>(API.userInfoUrl)